24 #define foreach(x, v) for (typeof (v).begin() x=(v).begin(); x !=(v).end(); ++x)
25 #define For(i, a, b) for (int i=(a); i<(b); ++i)
26 #define D(x) cout << #x " is " << x << endl
28 const double EPS
= 1e-9;
29 int cmp(double x
, double y
= 0, double tol
= EPS
) {
30 return (x
<= y
+ tol
) ? (x
+ tol
< y
) ? -1 : 0 : 1;
35 vector
<unsigned int> v(n
);
36 for (int i
= 0; i
< n
; ++i
) {
40 for (int i
= 0; i
< n
; ++i
) {
41 for (int j
= i
+ 1; j
< n
; ++j
) {